<admintpl file="header" />
<style>
a{cursor: pointer;}
.fl{float:left;}
.c-pages{padding:20px 0; text-align: center;}
.c-pages.tl{text-align: left;}
.c-pages span{display: inline-block; margin-right: 5px; font-size:12px; height:28px; line-height: 28px;}
.c-pages span.col{color: #fe344e; font-weight: 600;}
.c-pages span a{display: inline-block; margin:0 3px; height:28px; line-height: 28px; text-align: center; padding:0 12px; border:1px solid #ccc; text-decoration: none; border-radius: 2px;}
.c-pages span a:link,.c-pages span a:active,.c-pages span a:visited{color: #333;}
.c-pages span a:hover{ color: #ff8540; }
.c-pages span a.active{color: #fff; background: #ff8540;}
.c-pages  .current{ color: #fff; background: #ff8540; display: inline-block; margin: 0 3px; height: 28px;
	line-height: 28px;
	text-align: center;
	padding: 0 12px;
	text-decoration: none;
	border-radius: 2px;
}
.addWei{background: none; border:1px solid #ff8540; color: #ff8540; padding:4px 6px; font-size: 14px;float:left;margin-left:80px;margin-top:4px;}
.btns{background: none; border:1px solid #ff8540; color: #ff8540; padding:4px 6px; font-size: 14px;margin-top:5px;margin-left: 33px;}
.btnfx{cursor: pointer; width:60px; height:28px;line-height:28px; border:1px solid #07a9ff; color: #07a9ff; border-radius: 4px; background: none; margin-left:4px;}
.table td,.table th{text-align:center;}
.fx_table2 tr{white-space:nowrap;  overflow: hidden;}
</style>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li class="active" ><a>轮播图列表</a></li>
        <li class=""><a href="{:U('Lunbo/lunbotu_add')}">轮播图添加</a></li>
    </ul>

    <div id="mydiv">
        <table class="fx_table2 table table-hover table-bordered">
            <thead>
                <tr>
                    <th  style="text-align: center">序号</th>
                    <th  style="text-align: center">昵称</th>
                    <th  style="text-align: center">手机号</th>
                    <th  style="text-align: center">轮播图片</th>
                    <th  style="text-align: center">轮播类型</th>
                    <th  style="text-align: center">添加时间</th>
                    <th width="80">操作</th>
                </tr>
            </thead>
            <tbody>
            <foreach name="data" item="v" key='k'>
                <tr>
					<td  style="text-align: center">{$k+1+$sd}</td>
					<td  style="text-align: center"><?php if($v['type'] == 1){echo $v['nickname'];}elseif($v['type'] == 2){echo $v['name'];} ?></td>
                    <td  style="text-align: center"><?php if($v['type'] == 1){echo $v['phone'];}elseif($v['type'] == 2){echo $v['mobile'];} ?></td>
                    <td  style="text-align: center"><img src="{$v.img}" style="width: 50px;height: 50px"></td>
                    <td  style="text-align: center"><?php if($v['type'] == 1){echo '个人信息';}elseif($v['type'] == 2){echo '通告信息';} ?></td>
                    <td  style="text-align: center"><?php echo date("Y-m-d",$v["ctime"]);?></td>
                    <td>
                        <a href="{:U('Lunbo/lunbotu_del',array('id'=>$v['id']))}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </div>
   <div class="c-pages tc">
		<span>{$page} 第{$p}页/共{$totalpage}页</span>
	</div>
</div>
</body>
</html>
<script src="public/js/laydate/laydate.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script >


</script>
